package com.design.decorator;

public abstract class AbstractShape implements Shape{
    Shape shape;

    public AbstractShape(Shape shape){
        this.shape = shape;
    }

    @Override
    public void draw(){
        beforDraw();
        shape.draw();
        afterDraw();
    }

    abstract void beforDraw();
    abstract void afterDraw();
}
